/**
 * Created by zhangsong on 2019-05-22.
 */
import moment from 'moment';
import { datetimeFormat, WorkCardDefault } from '@/constants/styleConfig';
import {
  requestPostByToken,
  requestGetByToken,
  requestPutByToken,
  requestDeleteByToken,
} from '@/utils/request';
import URI from '@/services/uri';
import globalConfig from '@/constants/config';

const url = URI.application;

export const addVaccine = params =>
  requestPostByToken({
    url: url.vaccineUrl.add,
    body: params,
  });

export const getVaccine = id =>
  requestGetByToken({
    url: url.vaccineUrl.get.replace('{id}', id),
  });

export const modifyVaccine = params =>
  requestPostByToken({
    url: url.vaccineUrl.modify,
    body: params,
  });

export const uploadPartb = params =>
  requestPostByToken({
    url: url.vaccineUrl.upload,
    body: params,
  });

export const downloadPartb = () =>
  requestGetByToken({
    url: url.vaccineUrl.download,
  });
